#ifndef DB_OPS_H
#define DB_OPS_H

#include "task.h"

struct db_ops {
	void *sql_handle;

	int (*sql_query)(struct db_ops *this, char *command);
	unsigned int (*sql_errorno)(struct db_ops *this);
	const char *(*sql_error)(struct db_ops *this);
	int (*sql_server_gone_away)(struct db_ops *this, unsigned int errno);

	struct task *task;
};

#endif
